SUMMARY = "Recipe for build brick_utils"
LICENSE = "CLOSED"

DEPENDS = "libpcap"

inherit qoriq_build_64bit_kernel module

S = "${WORKDIR}/brick_utils"

do_unpack() {
	mkdir -p ${S}/opt
	cd ${THISDIR}
	git archive --format tar HEAD | tar -xf - -C ${S}
	cp .config ${S}
}

do_compile() {
	unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
	oe_runmake KDIR=${STAGING_KERNEL_BUILDDIR}
}

do_install() {
	unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
	oe_runmake install KDIR=${STAGING_KERNEL_BUILDDIR} DESTDIR=${D}
}
